-- GENERATED SPELL FOR [Altar Defender] --


function spell0_23453(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(41440,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23453', 565, 1)
end

function Sorts_23453(pUnit, Event)
local choix_sorts_23453 = math.random(0, 0)
if choix_sorts_23453 == 0 then
pUnit:RegisterEvent('spell0_23453', 1, 1)
end
end

function mob23453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23453', math.random(1500, 3000), 1)
end

function mob23453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23453, 1, 'mob23453_Action')
RegisterUnitEvent(23453, 2, 'mob23453_Leave')
RegisterUnitEvent(23453, 3, 'mob23453_Kill')
RegisterUnitEvent(23453, 4, 'mob23453_Die')
